package com.nclg.exam.entity;

import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@ToString
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@Data
public class TPaper implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long pId;

    private String pName;

    //试卷题目ids
    private String pQuestionids;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pCreatetime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pBegintime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pEndtime;

    //考试时长
    private Integer pDuration;

    private BigDecimal pScore;

    private String pStatus;

    private Long uId;
}
